from rest_framework.response import Response
from rest_framework.views import APIView

# /user/(?P<pk>\d+)/
class UserView(APIView):
    """
    self.kwargs:字典dict,保存的是从url地址中提取的所有的命名参数
    """

    def test_func(self):
        pass

    def get(self,request,pk):
        return Response({'message':'OK'})